<template>
    <ElTable class="list-table is-border" :="$attrs" border :data="list">
        <ElTableColumn label="公司名称">
            <template #default="{ row, $index }">
                {{ row.gsmc }}
            </template>
        </ElTableColumn>
        <ElTableColumn prop="_action" label="操作" fixed="right" :min-width="90" header-align="center" align="center">
            <template #default="{ row }">
                <ElButton type="primary" link @click="a">选择</ElButton>
            </template>
        </ElTableColumn>
    </ElTable>
</template>

<script setup lang="ts">
import { onMounted, computed } from 'vue'
import { ElSelect, ElTableColumn, ElInputNumber } from 'element-plus'

interface Props {
    data: any
}

const props = withDefaults(defineProps<Props>(), {
    data: () => ({})
})

let list = computed(() => {
    return props.data.fpList;
});


onMounted(async () => {
  
})

const a = async () => {
    props.data.skje = 2000;
    console.log(props.data);
}

</script>